gtkapplication-dbus: Initialise screensaver-active property
authorBob Ham <bob.ham@puri.sm>
Fri, 6 Sep 2019 13:59:27 +0000 (14:59 +0100)
committerBob Ham <bob.ham@puri.sm>
Fri, 6 Sep 2019 13:59:27 +0000 (14:59 +0100)
commit6bfe17105828b0b2eb0f4a362d3039d9416e3519
tree32eb7244f3d2d75bc5da955667ccf37c1f636d69
parenta29853f53bba38a6657530aed8491630326b034e
gtkapplication-dbus: Initialise screensaver-active property

When GtkApplication starts listening to the screensaver's D-Bus
status, the screensaver-active property is not initialised and
applications making use of the property are out of sync until the
first state change.  Any application starting when the screensaver is
active will think it's inactive.

To fix this, we set the property when we first start monitoring the
screensaver.
gtk/gtkapplication-dbus.c